Skip to content

Add a toggle for the Work Preview on Homepage#48

Closed
arshxb wants to merge 2 commits intoonce-ui-system:mainfrom
arshxb:toggle-work-on-homepage
Closed

Add a toggle for the Work Preview on Homepage#48
arshxb wants to merge 2 commits intoonce-ui-system:mainfrom
arshxb:toggle-work-on-homepage

Conversation

@arshxb
Copy link
Copy Markdown
Contributor

@arshxb arshxb commented Feb 1, 2025

Added a toggle feature to show or hide the Work/Projects preview sections on the homepage without affecting the main Work page functionality.

This improves flexibility in managing homepage content while keeping the main portfolio intact. There was a discussion about removing these sections, but I couldn't find the issue number. A toggle seemed like a better solution than modifying or removing the code entirely as suggested there.

Changes made:

  1. Added new showWorkPreviewOnHome flag to routes configuration
  2. Updated homepage to conditionally render Projects components based on this flag
  3. Projects preview sections will only show on homepage when showWorkPreviewOnHome is set to true
  4. the /work route and page remain unaffected by this change

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
magic-portfolio-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 8:30pm

@lorant-one lorant-one closed this Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants